package com.kgc.xs.remote;

import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface SalesOrdersRemote {

    @RequestMapping("/selectSalesOrdersByPage")
    @ResponseBody
    ResponseMsg selectSalesOrdersByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/insertSalesOrders")
    @ResponseBody
    ResponseMsg insertSalesOrders(@RequestBody Map<String, Object> map);

    @RequestMapping("/updateSalesOrders")
    @ResponseBody
    ResponseMsg updateSalesOrders(@RequestBody Map<String, Object> map);

    @RequestMapping("/deleteSalesOrdersById")
    @ResponseBody
    ResponseMsg deleteSalesOrders(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesOrdersById")
    @ResponseBody
    ResponseMsg selectSalesOrdersById(@RequestParam("id") int id);

    @RequestMapping("/checkSalesOrdersById")
    @ResponseBody
    ResponseMsg checkSalesOrdersById(@RequestBody  Map<String,Object> map);

    @RequestMapping("/selectSalesOrdersDetailByPage")
    @ResponseBody
    ResponseMsg selectSalesOrdersDetailByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesOrdersDetailById")
    @ResponseBody
    ResponseMsg selectSalesOrdersDetailById(@RequestParam("id") int id);

    @RequestMapping("/deleteSalesOrdersDetail")
    @ResponseBody
    ResponseMsg deleteSalesOrdersDetail(@RequestParam("xsOrderCode") String xsOrderCode);

    @RequestMapping("/selectSalesOrdersByCode")
    @ResponseBody
    ResponseMsg selectSalesOrdersByCode(@RequestParam("docCode")String docCode);

    @RequestMapping("/selectSalesOrdersDetailByCode")
    @ResponseBody
    ResponseMsg selectSalesOrdersDetailByCode(@RequestParam("xsOrderCode")String xsOrderCode);




}
